package StudyCode.summary.Basic;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class DeclarationEnum {
	public static void main(String[] args) {
		for (MyEnum myEnum : MyEnum.values()) {
			System.out.println(myEnum.name() + "(" + myEnum.getValue() + ")");
		}
	}
}

enum MyEnum {
	Test1("test1"), Test2("test2"), Test3("test3"), Test4("test4"), Test5("test5");

	private String value;

	private MyEnum(String a) {
		this.value = a;
	}

	public String getValue() {
		return value;
	}

}